package util;

import java.io.IOException;
import java.util.Properties;

/**
 * Created by Administrator on 2016/6/10.
 */
public  class GlobalVar {
    private static Properties properties = new Properties();

    static {
        try {
            properties.load(GlobalVar.class.getClassLoader().getResourceAsStream("database.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String MYSQL_PASSWORD = properties.getProperty("mysql.password");
    public static String MYSQL_USER = properties.getProperty("mysql.user");
    public static String MYSQL_URL = properties.getProperty("mysql.url");
}